package com.eatables.service;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import net.sf.json.JSONArray;

import com.eatables.dao.EatablesMasterDao;
import com.eatables.model.TblMasterList;

public class EatablesGetDetailsImpl extends HttpServlet implements EatablesGetDetailsIfc {

	/**
    * 
    */
	private static final long serialVersionUID = -2897001255030468640L;
	List<TblMasterList> jsonData;

	@SuppressWarnings("unchecked")
	public void doGet(HttpServletRequest request, HttpServletResponse response)
			throws ServletException, IOException {
		EatablesMasterDao masterDao = new EatablesMasterDao();
		PrintWriter out= response.getWriter();
		System.out.println("entering into getAllHotelIDsForHyderabad");
		jsonData = masterDao.getAllHotelIDsDetails();
		System.out.println("JSON+++  " + jsonData);
		JSONArray tmpJSONObj=JSONArray.fromObject(jsonData);
		out.println(tmpJSONObj.toString());
	}

	public String getAllHotelIDsForHyderabad() {
		// TODO Auto-generated method stub
		return null;
	}

	public void getPartialDetailsForBengaluru() {
		// TODO Auto-generated method stub
		
	}

	public void getPartialDetailsForChennai() {
		// TODO Auto-generated method stub
		
	}

	public String getPartialDetailsForHyderabad() {
		// TODO Auto-generated method stub
		return null;
	}

}